<?php
$this->pageTitle = '修改密码';
?>
<form action="" id="post-form" method="post">
<fieldset>
	<legend>修改密码</legend>
	<table class="post">
		<tbody>
			<tr>
				<td width="100">原始密码 <span class="asterisk">*</span></td>
				<td><input autocomplete="off" class="text" type="password" name="old_password" /></td>
			</tr>
			<tr>
				<td>新&nbsp;密&nbsp;码 <span class="asterisk">*</span></td>
				<td><input autocomplete="off" class="text" type="password" name="new_password" /></td>
			</tr>
			<tr>
				<td>确认密码 <span class="asterisk">*</span></td>
				<td><input autocomplete="off" class="text" type="password" name="cnf_password" /></td>
			</tr>
			<tr>
				<td><input type="submit" value="提交" /></td>
				<td></td>
			</tr>
		</tbody>
	</table>
</fieldset>
</form>

<?php $this->beginJs();?>
<script type="text/javascript">
$('#post-form').validate({
	errorPlacement: $.noop,
	rules: {
		old_password: {required: true},
		new_password: {required: true},
		cnf_password: {required: true, equalTo: $('#post-form').get(0).new_password}
	}	
});
</script>
<?php $this->endJs();?>
